<!DOCTYPE html>
<html lang="zh-CN" th:fragment="layout(title, content, script)">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    
    <!-- SEO Meta Tags -->
    <th:block th:replace="${title}"></th:block>
    <meta name="description" th:content="${seo != null ? seo.description : '专业的B2B机械设备制造商'}" th:if="${seo != null and seo.description != null}">
    <meta name="keywords" content="B2B, 机械设备, 工业制造, 外贸, 供应商, 制造商">
    <meta name="author" th:content="${site != null ? site.title : '机械制造公司'}">
    
    <!-- Open Graph -->
    <meta property="og:title" th:content="${seo != null ? seo.title : site.title}" th:if="${seo != null or site != null}">
    <meta property="og:description" th:content="${seo != null ? seo.description : '专业的B2B机械设备制造商'}" th:if="${seo != null and seo.description != null}">
    <meta property="og:type" content="website">
    <meta property="og:url" th:content="${site != null ? site.url : '#'}" th:if="${site != null and site.url != null}">
    
    <!-- Favicon -->
    <link rel="icon" th:href="@{/assets/images/favicon.ico}" type="image/x-icon">
    
    <!-- Critical CSS for immediate rendering -->
    <style>
        /* 基础样式重置 */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        body {
            font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            line-height: 1.6;
            color: #333;
            background-color: #f8fafc;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        /* 网格系统 */
        .row {
            display: flex;
            flex-wrap: wrap;
            margin: 0 -15px;
        }
        
        .col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6,
        .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12,
        .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6,
        .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12,
        .col-sm-1, .col-sm-2, .col-sm-3, .col-sm-4, .col-sm-5, .col-sm-6,
        .col-sm-7, .col-sm-8, .col-sm-9, .col-sm-10, .col-sm-11, .col-sm-12 {
            position: relative;
            width: 100%;
            padding: 0 15px;
        }
        
        /* Large devices */
        @media (min-width: 992px) {
            .col-lg-3 { flex: 0 0 25%; max-width: 25%; }
            .col-lg-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
            .col-lg-6 { flex: 0 0 50%; max-width: 50%; }
            .col-lg-12 { flex: 0 0 100%; max-width: 100%; }
        }
        
        /* Medium devices */
        @media (min-width: 768px) {
            .col-md-6 { flex: 0 0 50%; max-width: 50%; }
            .col-md-12 { flex: 0 0 100%; max-width: 100%; }
        }
        
        /* 头部样式 */
        .header {
            background: #fff;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        /* 顶部联系信息栏 */
        .top-contact-bar {
            background: #f8f9fa;
            border-bottom: 1px solid #e9ecef;
            padding: 8px 0;
            font-size: 13px;
        }
        
        .contact-info-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .contact-left,
        .contact-right {
            display: flex;
            align-items: center;
            gap: 25px;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #666;
        }
        
        .contact-item i {
            color: #1e3a8a;
            font-size: 12px;
        }
        
        .contact-label {
            font-weight: 500;
            color: #333;
        }
        
        .contact-value {
            color: #666;
        }
        
        .language-switch {
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .lang-link {
            color: #666;
            text-decoration: none;
            font-size: 12px;
            transition: color 0.3s;
        }
        
        .lang-link:hover,
        .lang-link.active {
            color: #1e3a8a;
            text-decoration: none;
        }
        
        .separator {
            color: #ccc;
        }
        
        /* 公司横幅 */
        .company-banner {
            background: #fff;
            padding: 25px 0;
            border-bottom: 1px solid #e9ecef;
        }
        
        .banner-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 40px;
        }
        
        .company-brand {
            display: flex;
            align-items: center;
            gap: 20px;
            flex: 1;
        }
        
        .company-logo {
            width: 80px;
            height: 80px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .logo-img {
            max-width: 60px;
            max-height: 60px;
            object-fit: contain;
        }
        
        .company-name {
            font-size: 28px;
            font-weight: 700;
            color: #1e3a8a;
            margin-bottom: 5px;
            line-height: 1.2;
        }
        
        .company-tagline {
            color: #666;
            font-size: 14px;
            margin-bottom: 10px;
            font-style: italic;
        }
        
        .company-credentials {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .credential-item {
            display: flex;
            align-items: center;
            gap: 5px;
            color: #666;
            font-size: 13px;
        }
        
        .credential-item i {
            color: #28a745;
            font-size: 12px;
        }
        
        /* 快速联系区域 */
        .quick-contact {
            background: #f8f9fa;
            border-radius: 8px;
            padding: 20px;
            border: 1px solid #e9ecef;
            min-width: 280px;
        }
        
        .contact-title {
            font-size: 16px;
            font-weight: 600;
            color: #1e3a8a;
            margin-bottom: 15px;
            text-align: center;
            letter-spacing: 1px;
        }
        
        .contact-actions {
            display: flex;
            flex-direction: column;
            gap: 10px;
            margin-bottom: 15px;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 10px 20px;
            border: none;
            border-radius: 5px;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s ease;
            cursor: pointer;
            text-align: center;
        }
        
        .btn-primary {
            background: #1e3a8a;
            color: white;
        }
        
        .btn-primary:hover {
            background: #1e40af;
            color: white;
            text-decoration: none;
        }
        
        .btn-outline {
            background: transparent;
            color: #1e3a8a;
            border: 2px solid #1e3a8a;
        }
        
        .btn-outline:hover {
            background: #1e3a8a;
            color: white;
            text-decoration: none;
        }
        
        .quick-info {
            text-align: center;
        }
        
        .response-time {
            color: #666;
            font-size: 12px;
            margin: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 5px;
        }
        
        .response-time i {
            color: #28a745;
        }
        
        /* 导航样式 */
         .main-navigation {
             background: #1e3a8a;
             position: sticky;
             top: 0;
             z-index: 1000;
             box-shadow: 0 2px 8px rgba(30, 58, 138, 0.3);
         }
         
         /* 产品分类展示区域样式 */
         .product-categories {
             padding: 80px 0;
             background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
         }
         
         .section-header {
             text-align: center;
             margin-bottom: 60px;
         }
         
         .section-title {
             font-size: 36px;
             font-weight: 700;
             color: #1e3a8a;
             margin-bottom: 16px;
             position: relative;
         }
         
         .section-title::after {
             content: '';
             position: absolute;
             bottom: -8px;
             left: 50%;
             transform: translateX(-50%);
             width: 80px;
             height: 4px;
             background: linear-gradient(90deg, #3b82f6, #1e40af);
             border-radius: 2px;
         }
         
         .section-subtitle {
             font-size: 18px;
             color: #64748b;
             margin-top: 20px;
         }
         
         .categories-grid {
             display: grid;
             grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
             gap: 30px;
             margin-bottom: 50px;
         }
         
         .category-card {
             background: #fff;
             border-radius: 16px;
             overflow: hidden;
             box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
             transition: all 0.3s ease;
             border: 1px solid #e2e8f0;
         }
         
         .category-card:hover {
             transform: translateY(-8px);
             box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
         }
         
         .category-image {
             position: relative;
             height: 220px;
             overflow: hidden;
         }
         
         .category-image img {
             width: 100%;
             height: 100%;
             object-fit: cover;
             transition: transform 0.3s ease;
         }
         
         .category-card:hover .category-image img {
             transform: scale(1.05);
         }
         
         .category-image::after {
             content: '';
             position: absolute;
             top: 0;
             left: 0;
             right: 0;
             bottom: 0;
             background: linear-gradient(180deg, transparent 0%, rgba(30, 58, 138, 0.1) 100%);
         }
         
         .category-info {
             padding: 24px;
         }
         
         .category-title {
             font-size: 22px;
             font-weight: 600;
             color: #1e3a8a;
             margin-bottom: 12px;
         }
         
         .category-desc {
             font-size: 15px;
             color: #64748b;
             line-height: 1.6;
             margin-bottom: 16px;
         }
         
         .category-stats {
             display: flex;
             gap: 12px;
             flex-wrap: wrap;
         }
         
         .stat-item {
             background: linear-gradient(135deg, #3b82f6, #1e40af);
             color: #fff;
             padding: 6px 12px;
             border-radius: 20px;
             font-size: 13px;
             font-weight: 500;
         }
         
         .view-all-products {
             text-align: center;
         }
         
         .view-all-products .btn {
             padding: 16px 32px;
             font-size: 16px;
             font-weight: 600;
         }
         
         /* 公司优势区域样式 */
         .company-advantages {
             padding: 80px 0;
             background: #fff;
         }
         
         .advantages-grid {
             display: grid;
             grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
             gap: 30px;
         }
         
         .advantage-card {
             background: #fff;
             padding: 40px 30px;
             border-radius: 16px;
             text-align: center;
             border: 2px solid #e2e8f0;
             transition: all 0.3s ease;
             position: relative;
             overflow: hidden;
         }
         
         .advantage-card::before {
             content: '';
             position: absolute;
             top: 0;
             left: 0;
             right: 0;
             height: 4px;
             background: linear-gradient(90deg, #3b82f6, #1e40af);
             transform: scaleX(0);
             transition: transform 0.3s ease;
         }
         
         .advantage-card:hover {
             border-color: #3b82f6;
             box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
         }
         
         .advantage-card:hover::before {
             transform: scaleX(1);
         }
         
         .advantage-icon {
             width: 80px;
             height: 80px;
             background: linear-gradient(135deg, #3b82f6, #1e40af);
             border-radius: 50%;
             display: flex;
             align-items: center;
             justify-content: center;
             margin: 0 auto 24px;
             font-size: 32px;
             color: #fff;
         }
         
         .advantage-title {
             font-size: 22px;
             font-weight: 600;
             color: #1e3a8a;
             margin-bottom: 16px;
         }
         
         .advantage-desc {
             font-size: 15px;
             color: #64748b;
             line-height: 1.6;
             margin-bottom: 20px;
         }
         
         .advantage-features {
             list-style: none;
             padding: 0;
             margin: 0;
         }
         
         .advantage-features li {
             padding: 8px 0;
             color: #475569;
             font-size: 14px;
             position: relative;
             padding-left: 20px;
         }
         
         .advantage-features li::before {
             content: '✓';
             position: absolute;
             left: 0;
             color: #10b981;
             font-weight: bold;
         }
         
         /* 企业数据展示样式 */
         .company-stats {
             padding: 60px 0;
             background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
             color: #fff;
         }
         
         .stats-grid {
             display: grid;
             grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
             gap: 40px;
             text-align: center;
         }
         
         .stat-item {
             padding: 20px;
         }
         
         .stat-number {
             font-size: 48px;
             font-weight: 700;
             color: #fff;
             margin-bottom: 8px;
             text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
         }
         
         .stat-label {
              font-size: 16px;
              color: rgba(255, 255, 255, 0.9);
              font-weight: 500;
          }
          
          /* 联系咨询区域样式 */
          .contact-cta {
              padding: 80px 0;
              background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
              position: relative;
              overflow: hidden;
          }
          
          .contact-cta::before {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              right: 0;
              bottom: 0;
              background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>') repeat;
              opacity: 0.3;
          }
          
          .cta-content {
              text-align: center;
              position: relative;
              z-index: 1;
              max-width: 800px;
              margin: 0 auto;
              padding: 60px 40px;
              background: #fff;
              border-radius: 20px;
              box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
              border: 1px solid #e2e8f0;
          }
          
          .cta-title {
              font-size: 32px;
              font-weight: 700;
              color: #1e3a8a;
              margin-bottom: 16px;
              line-height: 1.3;
          }
          
          .cta-subtitle {
              font-size: 18px;
              color: #64748b;
              margin-bottom: 40px;
              line-height: 1.6;
          }
          
          .cta-buttons {
              display: flex;
              gap: 20px;
              justify-content: center;
              flex-wrap: wrap;
          }
          
          .btn-large {
              padding: 18px 36px;
              font-size: 18px;
              font-weight: 600;
              min-width: 180px;
          }
          
          /* 全局字体优化 */
          body {
              font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
              line-height: 1.6;
              color: #334155;
              font-size: 16px;
          }
          
          h1, h2, h3, h4, h5, h6 {
              font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
              font-weight: 600;
              line-height: 1.3;
              color: #1e293b;
          }
          
          .btn {
              font-family: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
              font-weight: 500;
              letter-spacing: 0.5px;
          }
          
          /* 企业横幅区域样式优化 */
          .company-banner {
              background: linear-gradient(135deg, #1e3a8a 0%, #3730a3 100%);
              color: #fff;
              padding: 40px 0;
              position: relative;
              overflow: hidden;
          }
          
          .company-banner::before {
              content: '';
              position: absolute;
              top: 0;
              left: 0;
              right: 0;
              bottom: 0;
              background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>') repeat;
          }
          
          .banner-content {
              display: flex;
              justify-content: space-between;
              align-items: center;
              gap: 40px;
              position: relative;
              z-index: 1;
          }
          
          .company-info {
              display: flex;
              align-items: center;
              gap: 30px;
              flex: 1;
          }
          
          .supplier-badge {
              display: flex;
              align-items: center;
              gap: 20px;
              background: rgba(255, 255, 255, 0.1);
              padding: 20px;
              border-radius: 12px;
              border: 1px solid rgba(255, 255, 255, 0.2);
          }
          
          .badge-years {
              text-align: center;
              background: linear-gradient(135deg, #fbbf24, #f59e0b);
              padding: 15px;
              border-radius: 8px;
              min-width: 80px;
          }
          
          .years-number {
              font-size: 28px;
              font-weight: 700;
              color: #fff;
              line-height: 1;
          }
          
          .years-text {
              font-size: 14px;
              color: #fff;
              margin-top: 4px;
          }
          
          .badge-labels {
              display: flex;
              flex-direction: column;
              gap: 8px;
          }
          
          .gold-supplier {
              background: linear-gradient(135deg, #fbbf24, #f59e0b);
              color: #fff;
              padding: 6px 12px;
              border-radius: 20px;
              font-size: 14px;
              font-weight: 600;
          }
          
          .certifications {
              display: flex;
              gap: 8px;
          }
          
          .cert-item {
              background: rgba(255, 255, 255, 0.2);
              color: #fff;
              padding: 4px 8px;
              border-radius: 12px;
              font-size: 12px;
              border: 1px solid rgba(255, 255, 255, 0.3);
          }
          
          .company-details {
              flex: 1;
          }
          
          .company-name {
              font-size: 32px;
              font-weight: 700;
              color: #fff;
              margin-bottom: 12px;
              text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
          }
          
          .company-meta {
              display: flex;
              gap: 20px;
              flex-wrap: wrap;
              font-size: 16px;
              color: rgba(255, 255, 255, 0.9);
          }
          
          .contact-actions {
              display: flex;
              gap: 16px;
              flex-direction: column;
              min-width: 200px;
          }
          
          .btn-contact {
              background: linear-gradient(135deg, #10b981, #059669);
              color: #fff;
              border: none;
              padding: 16px 24px;
              border-radius: 8px;
              font-size: 16px;
              font-weight: 600;
              text-decoration: none;
              text-align: center;
              transition: all 0.3s ease;
              box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
          }
          
          .btn-contact:hover {
              transform: translateY(-2px);
              box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
          }
          
          .btn-outline {
              background: transparent;
              color: #fff;
              border: 2px solid rgba(255, 255, 255, 0.3);
              padding: 14px 24px;
              border-radius: 8px;
              font-size: 16px;
              font-weight: 600;
              text-decoration: none;
              text-align: center;
              transition: all 0.3s ease;
          }
          
          .btn-outline:hover {
              background: rgba(255, 255, 255, 0.1);
              border-color: rgba(255, 255, 255, 0.5);
              transform: translateY(-2px);
          }
         
         .nav-content {
             display: flex;
             justify-content: space-between;
             align-items: center;
             padding: 0;
         }
         
         .mobile-menu-toggle {
             display: none;
             flex-direction: column;
             gap: 4px;
             background: transparent;
             border: none;
             padding: 8px;
             cursor: pointer;
         }
         
         .mobile-menu-toggle span {
             width: 25px;
             height: 3px;
             background: #fff;
             transition: 0.3s;
         }
         
         .nav-menu {
             display: flex;
             list-style: none;
             margin: 0;
             padding: 0;
             gap: 0;
         }
         
         .nav-item {
             position: relative;
         }
         
         .nav-link {
             display: block;
             color: #fff;
             text-decoration: none;
             font-weight: 500;
             padding: 18px 25px;
             transition: all 0.3s;
             font-size: 15px;
         }
         
         .nav-link:hover {
             background: rgba(255,255,255,0.1);
             color: #fff;
             text-decoration: none;
         }
         
         .nav-link i {
             margin-left: 5px;
             font-size: 12px;
         }
         
         /* 下拉菜单 */
         .dropdown-menu {
             position: absolute;
             top: 100%;
             left: 0;
             background: #fff;
             min-width: 200px;
             box-shadow: 0 4px 12px rgba(0,0,0,0.15);
             border-radius: 0 0 8px 8px;
             opacity: 0;
             visibility: hidden;
             transform: translateY(-10px);
             transition: all 0.3s;
             z-index: 1000;
             list-style: none;
             padding: 10px 0;
             margin: 0;
         }
         
         .nav-item:hover .dropdown-menu {
             opacity: 1;
             visibility: visible;
             transform: translateY(0);
         }
         
         .dropdown-link {
             display: block;
             color: #333;
             text-decoration: none;
             padding: 10px 20px;
             transition: all 0.3s;
             font-size: 14px;
         }
         
         .dropdown-link:hover {
             background: #f8f9fa;
             color: #1e3a8a;
             text-decoration: none;
         }
         
         /* 导航右侧操作区 */
         .nav-actions {
             display: flex;
             align-items: center;
             gap: 20px;
         }
         
         .search-box {
             display: flex;
             align-items: center;
             background: rgba(255,255,255,0.1);
             border-radius: 25px;
             padding: 5px;
         }
         
         .search-input {
             background: transparent;
             border: none;
             color: #fff;
             padding: 8px 15px;
             font-size: 14px;
             width: 200px;
             outline: none;
         }
         
         .search-input::placeholder {
             color: rgba(255,255,255,0.7);
         }
         
         .search-btn {
             background: rgba(255,255,255,0.2);
             border: none;
             color: #fff;
             padding: 8px 12px;
             border-radius: 50%;
             cursor: pointer;
             transition: all 0.3s;
         }
         
         .search-btn:hover {
             background: rgba(255,255,255,0.3);
         }
         
         .inquiry-btn {
             background: #28a745;
             color: #fff;
             text-decoration: none;
             padding: 10px 20px;
             border-radius: 25px;
             font-weight: 500;
             font-size: 14px;
             transition: all 0.3s;
             display: flex;
             align-items: center;
             gap: 8px;
         }
         
         .inquiry-btn:hover {
             background: #218838;
             color: #fff;
             text-decoration: none;
             transform: translateY(-1px);
         }
        
        /* 页脚样式 */
        .footer {
            background: #1a202c;
            color: #e2e8f0;
            padding: 60px 0 20px;
        }
        
        .footer h4 {
            color: #fff;
            margin-bottom: 20px;
            font-size: 18px;
        }
        
        .footer-links {
            list-style: none;
            padding: 0;
        }
        
        .footer-links li {
            margin-bottom: 8px;
        }
        
        .footer-links a {
            color: #cbd5e0;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .footer-links a:hover {
            color: #fff;
        }
        
        .footer-bottom {
             border-top: 1px solid #2d3748;
             margin-top: 40px;
             padding-top: 20px;
             text-align: center;
             color: #a0aec0;
         }
         
         /* 响应式设计 */
         @media (max-width: 1024px) {
             .banner-content {
                 gap: 20px;
             }
             
             .company-brand {
                 gap: 15px;
             }
             
             .quick-contact {
                 min-width: 240px;
             }
             
             .nav-actions .search-box {
                 width: 150px;
             }
             
             .search-input {
                 width: 120px;
             }
         }
         
         @media (max-width: 768px) {
             .top-contact-bar {
                 padding: 5px 0;
             }
             
             .contact-info-row {
                 flex-direction: column;
                 gap: 10px;
                 text-align: center;
             }
             
             .contact-left,
             .contact-right {
                 flex-wrap: wrap;
                 justify-content: center;
                 gap: 15px;
             }
             
             .banner-content {
                 flex-direction: column;
                 text-align: center;
                 gap: 25px;
             }
             
             .company-brand {
                 flex-direction: column;
                 text-align: center;
             }
             
             .company-credentials {
                 justify-content: center;
             }
             
             .quick-contact {
                 width: 100%;
                 max-width: 300px;
                 margin: 0 auto;
             }
             
             .mobile-menu-toggle {
                 display: flex;
             }
             
             .nav-menu {
                 display: none;
                 position: absolute;
                 top: 100%;
                 left: 0;
                 right: 0;
                 background: #1e3a8a;
                 flex-direction: column;
                 box-shadow: 0 4px 12px rgba(0,0,0,0.15);
             }
             
             .nav-menu.active {
                 display: flex;
             }
             
             .nav-item {
                 width: 100%;
             }
             
             .nav-link {
                 padding: 15px 20px;
                 border-bottom: 1px solid rgba(255,255,255,0.1);
             }
             
             .dropdown-menu {
                 position: static;
                 opacity: 1;
                 visibility: visible;
                 transform: none;
                 box-shadow: none;
                 background: rgba(255,255,255,0.1);
                 border-radius: 0;
             }
             
             .dropdown-link {
                 color: rgba(255,255,255,0.9);
                 padding-left: 40px;
             }
             
             .dropdown-link:hover {
                 background: rgba(255,255,255,0.1);
                 color: #fff;
             }
             
             .nav-actions {
                 flex-direction: column;
                 gap: 10px;
                 padding: 15px 20px;
                 border-top: 1px solid rgba(255,255,255,0.1);
             }
             
             .search-box {
                 width: 100%;
             }
             
             .search-input {
                 width: 100%;
             }
             
             .inquiry-btn {
                 width: 100%;
                 justify-content: center;
             }
         }
         
         @media (max-width: 480px) {
             .container {
                 padding: 0 15px;
             }
             
             .company-name {
                 font-size: 22px;
             }
             
             .company-logo {
                 width: 60px;
                 height: 60px;
             }
             
             .logo-img {
                 max-width: 40px;
                 max-height: 40px;
             }
             
             .contact-item {
                 font-size: 12px;
             }
             
             .contact-actions {
                 gap: 8px;
             }
             
             .btn {
                 padding: 8px 16px;
                 font-size: 13px;
             }
         }
    </style>
    <script>
        // 移动端菜单切换功能
        document.addEventListener('DOMContentLoaded', function() {
            const mobileToggle = document.querySelector('.mobile-menu-toggle');
            const navMenu = document.querySelector('.nav-menu');
            
            if (mobileToggle && navMenu) {
                mobileToggle.addEventListener('click', function() {
                    navMenu.classList.toggle('active');
                    
                    // 切换汉堡菜单图标
                    const icon = mobileToggle.querySelector('i');
                    if (icon) {
                        if (navMenu.classList.contains('active')) {
                            icon.className = 'fas fa-times';
                        } else {
                            icon.className = 'fas fa-bars';
                        }
                    }
                });
            }
            
            // 点击菜单外部关闭菜单
            document.addEventListener('click', function(e) {
                if (!e.target.closest('.main-navigation') && navMenu && navMenu.classList.contains('active')) {
                    navMenu.classList.remove('active');
                    const icon = mobileToggle.querySelector('i');
                    if (icon) {
                        icon.className = 'fas fa-bars';
                    }
                }
            });
            
            // 窗口大小改变时重置菜单状态
            window.addEventListener('resize', function() {
                if (window.innerWidth > 768 && navMenu && navMenu.classList.contains('active')) {
                    navMenu.classList.remove('active');
                    const icon = mobileToggle.querySelector('i');
                    if (icon) {
                        icon.className = 'fas fa-bars';
                    }
                }
            });
        });
    </script>
    
    <!-- Font Awesome -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css">
    
    <!-- Google Fonts -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700;900&family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    
    <!-- Theme CSS -->
    <link rel="stylesheet" th:href="@{/themes/alibaba-b2b-theme/assets/css/style.css}">
    

</head>
<body>
    <!-- Header -->
    <header class="header">
        <!-- 顶部联系信息栏 -->
        <div class="top-contact-bar">
            <div class="container">
                <div class="contact-info-row">
                    <div class="contact-left">
                        <div class="contact-item">
                            <i class="fas fa-phone"></i>
                            <span class="contact-label">Tel:</span>
                            <span class="contact-value">0571-22222222</span>
                        </div>
                        <div class="contact-item">
                            <i class="fas fa-fax"></i>
                            <span class="contact-label">Fax:</span>
                            <span class="contact-value">0571-22222222</span>
                        </div>
                        <div class="contact-item">
                            <i class="fas fa-envelope"></i>
                            <span class="contact-label">E-mail:</span>
                            <span class="contact-value">info@machinery.com</span>
                        </div>
                    </div>
                    <div class="contact-right">
                        <div class="contact-item">
                            <i class="fas fa-map-marker-alt"></i>
                            <span class="contact-label">Address:</span>
                            <span class="contact-value">Xihu District, Zhejiang, China</span>
                        </div>
                        <div class="language-switch">
                            <a href="#" class="lang-link active">中文</a>
                            <span class="separator">|</span>
                            <a href="#" class="lang-link">English</a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 公司横幅 -->
        <div class="company-banner">
            <div class="container">
                <div class="banner-content">
                    <!-- 公司Logo和信息 -->
                    <div class="company-brand">
                        <div class="company-logo">
                            <img src="/themes/alibaba-b2b-theme/assets/images/logo.gif" class="logo-img">
                        </div>
                        <div class="company-info">
                            <h1 class="company-name" th:text="${theme.config.company.name ?: '湖北中盛贸易有限公司'}">
                                湖北中盛贸易有限公司
                            </h1>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        
        <!-- 主导航 -->
        <nav class="main-navigation">
            <div class="container">
                <div class="nav-content">
                    <button class="mobile-menu-toggle">
                        <span></span>
                        <span></span>
                        <span></span>
                    </button>
                    
                    <ul class="nav-menu">
                        <li class="nav-item">
                            <a href="/" class="nav-link">首页</a>
                        </li>
                        <li class="nav-item dropdown">
                            <a href="/products" class="nav-link">
                                产品中心
                                <i class="fas fa-chevron-down"></i>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="/products/cnc" class="dropdown-link">数控机床</a></li>
                                <li><a href="/products/hydraulic" class="dropdown-link">液压设备</a></li>
                                <li><a href="/products/automation" class="dropdown-link">自动化设备</a></li>
                                <li><a href="/products/mold" class="dropdown-link">模具设备</a></li>
                            </ul>
                        </li>
                        <li class="nav-item">
                            <a href="/about" class="nav-link">关于我们</a>
                        </li>
                        <li class="nav-item">
                            <a href="/news" class="nav-link">新闻资讯</a>
                        </li>
                        <li class="nav-item">
                            <a href="/contact" class="nav-link">联系我们</a>
                        </li>
                    </ul>
                    
                    <!-- 搜索和询盘 -->
                    <div class="nav-actions">
                        <div class="search-box">
                            <input type="text" class="search-input" placeholder="搜索产品...">
                            <button class="search-btn">
                                <i class="fas fa-search"></i>
                            </button>
                        </div>
                        <a href="/contact" class="inquiry-btn">
                            <i class="fas fa-envelope"></i>
                            立即询盘
                        </a>
                    </div>
                </div>
            </div>
        </nav>
    </header>
    
    <!-- Main Content -->
    <main class="main-content">
        <th:block th:replace="${content}"></th:block>
    </main>
    
    <!-- Footer -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <!-- 公司信息 -->
                <div class="col-lg-4 col-md-6">
                    <div class="footer-section">
                        <h3 class="footer-title" th:text="${theme.config.company.name ?: site.title}">
                            阿里巴巴B2B企业主题
                        </h3>
                        <p class="footer-description">
                            专业的B2B机械设备制造商，拥有15年行业经验，致力于为全球客户提供高质量的工业解决方案。
                        </p>
                        
                        <!-- 联系信息 -->
                        <div class="contact-info">
                            <div class="contact-item" th:if="${theme.config.contact_info.email}">
                                <i class="fas fa-envelope"></i>
                                <span th:text="${theme.config.contact_info.email}">info@company.com</span>
                            </div>
                            <div class="contact-item" th:if="${theme.config.contact_info.phone}">
                                <i class="fas fa-phone"></i>
                                <span th:text="${theme.config.contact_info.phone}">+86-027-12345678</span>
                            </div>
                            <div class="contact-item">
                                <i class="fas fa-map-marker-alt"></i>
                                <span>中国 湖北省 武汉市</span>
                            </div>
                        </div>
                    </div>
                </div>
                
                <!-- 产品分类 -->
                <div class="col-lg-2 col-md-6">
                    <div class="footer-section">
                        <h3 class="footer-title">产品分类</h3>
                        <ul class="footer-links">
                            <li><a href="/products/category1">机械设备</a></li>
                            <li><a href="/products/category2">工业配件</a></li>
                            <li><a href="/products/category3">自动化设备</a></li>
                            <li><a href="/products/category4">检测设备</a></li>
                            <li><a href="/products/category5">定制解决方案</a></li>
                        </ul>
                    </div>
                </div>
                
                <!-- 服务支持 -->
                <div class="col-lg-2 col-md-6">
                    <div class="footer-section">
                        <h3 class="footer-title">服务支持</h3>
                        <ul class="footer-links">
                            <li><a href="/about">关于我们</a></li>
                            <li><a href="/contact">联系我们</a></li>
                            <li><a href="/support">技术支持</a></li>
                            <li><a href="/warranty">质保服务</a></li>
                            <li><a href="/download">资料下载</a></li>
                        </ul>
                    </div>
                </div>
                
                <!-- 认证与社交 -->
                <div class="col-lg-4 col-md-6">
                    <div class="footer-section">
                        <h3 class="footer-title">认证资质</h3>
                        <div class="certifications-footer">
                            <div class="cert-badge">
                                <i class="fas fa-certificate"></i>
                                <span>ISO 9001:2015</span>
                            </div>
                            <div class="cert-badge">
                                <i class="fas fa-certificate"></i>
                                <span>CE认证</span>
                            </div>
                        </div>
                        
                        <h4 class="footer-title" style="margin-top: 30px;">关注我们</h4>
                        <div class="social-links">
                            <a href="#" class="social-link">
                                <i class="fab fa-linkedin"></i>
                            </a>
                            <a href="#" class="social-link">
                                <i class="fab fa-facebook"></i>
                            </a>
                            <a href="#" class="social-link">
                                <i class="fab fa-twitter"></i>
                            </a>
                            <a href="#" class="social-link">
                                <i class="fab fa-youtube"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 底部版权 -->
            <div class="footer-bottom">
                <div class="row">
                    <div class="col-md-6">
                        <p class="copyright">
                            &copy; <span th:text="${#dates.year(#dates.createNow())}">2024</span> 
                            <span th:text="${theme.config.company.name ?: site.title}">Company Name</span>. 
                            保留所有权利。
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </footer>
    
    <!-- JavaScript -->
    <script>
        // 基本的交互功能
        document.addEventListener('DOMContentLoaded', function() {
            // 移动端菜单切换
            const mobileMenuBtn = document.querySelector('.mobile-menu-btn');
            const navMenu = document.querySelector('.nav-menu');
            
            if (mobileMenuBtn && navMenu) {
                mobileMenuBtn.addEventListener('click', function() {
                    navMenu.classList.toggle('active');
                });
            }
            
            // 下拉菜单功能
            const dropdowns = document.querySelectorAll('.dropdown');
            dropdowns.forEach(dropdown => {
                const toggle = dropdown.querySelector('.dropdown-toggle');
                const menu = dropdown.querySelector('.dropdown-menu');
                
                if (toggle && menu) {
                    toggle.addEventListener('click', function(e) {
                        e.preventDefault();
                        dropdown.classList.toggle('active');
                    });
                }
            });
            
            // 点击外部关闭下拉菜单
            document.addEventListener('click', function(e) {
                if (!e.target.closest('.dropdown')) {
                    dropdowns.forEach(dropdown => {
                        dropdown.classList.remove('active');
                    });
                }
            });
        });
    </script>
    
    <!-- Theme JavaScript -->
    <script th:src="@{/themes/alibaba-b2b-theme/assets/js/main.js}"></script>
    
    <th:block th:replace="${script}"></th:block>
</body>
</html>